package com.user.bean;

import java.util.Calendar;

public class indexDisscuss {
    private String userName;
    private String time;
    private String message;


    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setTime() {
        Calendar c = Calendar.getInstance();// 可以对每个时间域单独修改
        int year = c.get(Calendar.YEAR);
        int month = c.get(Calendar.MONTH);
        int date = c.get(Calendar.DATE);
        this.time=year+"-"+month+"-"+ date;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getUserName() {
        return userName;
    }

    public String getMessage() {
        return message;
    }

    public String getTime() {
        return time;
    }
}
